home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.5)
-
- from time import *
- import sys
- import threading
- _MAXFORWARD = 100
- _FUDGE = 1
-
- class RelativeTime:
-
- def __init__(self):
- self.time = time()
- self.offset = 0
- self.lock = threading.Lock()
-
-
- def get_time(self):
- self.lock.acquire()
-
- try:
- t = time() + self.offset
- self.time = t
- finally:
- self.lock.release()
-
- return t
-
-
- if sys.platform != 'win32':
- _RTIME = RelativeTime()
-
- def clock():
- return _RTIME.get_time()
-
-
-